package com.heima.article.feign;

import com.heima.article.dto.FollowBehaviorDto;
import com.heima.article.entity.ApUserFollow;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-user")
public interface UserClient {

    /**
     * 查询关注记录
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/user_follow/getFollow")
    ResponseResult<ApUserFollow> getFollow (@RequestBody FollowBehaviorDto dto);
}
